import request from "../utils/request";

// 分页查询订单列表
export const orderPage = data => {
    return request({
        method: 'POST',
        url: '/order/findPage',
        data
    })
}
//委托寄件
export const orderMail = data => {
    return request({
        method: 'POST',
        url: '/sendList/send',
        data
    })
}
//查询寄件列表
export const mailList = data => {
    return request({
        method: 'POST',
        url: '/sendList/findPage',
        data
    })
}
// 审核寄件
export const mailExamine = id => {
    return request({
        method: 'GET',
        url: '/sendList/audit?id=' + id
    })
}
// 提交寄件
export const mailSumbit = id => {
    return request({
        method: 'GET',
        url: '/sendList/submit?id=' + id
    })
}
//查看
export const mailById = id => {
    return request({
        method: 'GET',
        url: '/sendList/findById?id=' + id
    })
}
//编辑订单
export const mailEdit = data => {
    return request({
        method: 'POST',
        url: '/sendList/edit',
        data
    })
}
//重置
export const mailReset = () => {
    return request({
        method: 'GET',
        url: '/order/reset'
    })
}
